﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MainPage.aspx.cs" Inherits="RegistrationFormExercise.MainPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <label>First name: </label>
        <asp:TextBox ID="FirstName" runat="server"></asp:TextBox><br />
       
        <label>LastName: </label>
        <asp:TextBox ID="LastName" runat="server"></asp:TextBox><br />
        
        <label>Faculty number: </label>
        <asp:TextBox ID="FacultyNumber" runat="server"></asp:TextBox><br />
        
        <label>University: </label>
        <asp:DropDownList ID="UniversityDropList" runat="server">
            <asp:ListItem Value="Sofia university" Selected="True">Sofia university</asp:ListItem>
            <asp:ListItem Value="Technical university">Technical university</asp:ListItem>
            <asp:ListItem Value="UNSS">UNSS</asp:ListItem>
        </asp:DropDownList><br />

        <label>Courses: </label>
        <asp:ListBox ID="CoursesListBox" runat="server" AutoPostBack="True"  OnSelectedIndexChanged="ListBoxCourses_SelectedIndexChanged"
            SelectionMode="Multiple">
            <asp:ListItem Value=".Net Essentials" Selected="True">.Net Essentials</asp:ListItem>
            <asp:ListItem Value="Web front-end">Web front-end</asp:ListItem>
            <asp:ListItem Value="High-Quality programming code">High-Quality programming code</asp:ListItem>
        </asp:ListBox><br />

        <asp:Button id="SubmitButton" runat="server" Text="Submit" OnClick="SubmitButtonClicked"/>
    </div>
    <br />
    <br />

    <div id="ResultDivision" runat="server" visible="false">
        <h3 >Entered student: </h3><br />
        <label>FirstName: </label><label id="FirstNameResult" runat="server"></label><br />
        <label>LastName: </label><label id="LastNameResult" runat="server"></label><br />
        <label>FacultyNumber: </label><label id="FacultyNumberResult" runat="server"></label><br />
        <label>University: </label><label id="UniversityResult" runat="server"></label><br />
        <Label>Courses: </Label><asp:ListBox ID="CoursesResult" runat="server"></asp:ListBox><br />
    </div>
    </form>
</body>
</html>
